﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpPassedAdd.aspx.cs" Inherits="UI.ModEmployee.EmpPassedAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>增加转正信息</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
           
    <style type="text/css">
        td
        {
            height: 27px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
    <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>转正信息管理</strong></p>
    <br />
    <table style="width: 80%;" align="center" class="td">
        <tr>
            <td>
                员工编号:
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="100px" TabIndex="1"
                    AutoPostBack="True" OnTextChanged="txtEmpCode_TextChanged"></asp:TextBox>
                <a href="javascript:ShowLink('ZipSeaForIn.aspx',880,550)">
                    <img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
            </td>
             <td>
                员工姓名:
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="100px" TabIndex="1" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        <tr>
        <td>
                部门名称:
            </td>
            <td>
                <asp:TextBox ID="txtOldDeptName" runat="server" CssClass="InputCss" Width="100px" onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    TabIndex="2"></asp:TextBox>
            </td>
           
            <td>
                区域名称:
            </td>
            <td>
                <asp:TextBox ID="txtOldAreaName" runat="server" CssClass="InputCss" Width="100px" onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    TabIndex="3"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                入职时间:
            </td>
            <td>
                <asp:TextBox ID="txtJoinTime" runat="server" CssClass="InputCss" Width="100px" TabIndex="4" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
            <td>
                转正时间:
            </td>
            <td>
                <asp:TextBox ID="txtPassedTime" runat="server" CssClass="InputCss"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    Width="100px" TabIndex="5" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
            </tr>
            <tr>
            <td>
                转正类别:
            </td>
            <td>
                <asp:DropDownList ID="ddlPassedTypeName" runat="server" CssClass="InputCss" Width="100px"
                    TabIndex="6" onkeydown="if(event.keyCode==13)event.keyCode=9" >
                </asp:DropDownList>
            </td>
            <td>
                信息类别:</td>
            <td>
                <asp:DropDownList ID="ddlInfoType" runat="server" CssClass="InputCss" TabIndex="7" onkeydown="if(event.keyCode==13)event.keyCode=9" >
                </asp:DropDownList>
                </td>
                </tr>
            <tr>
            <td>
                原职位:
            </td>
            <td>
                <asp:TextBox ID="txtOldDutyName" runat="server" CssClass="InputCss" Width="100px"
                    TabIndex="8" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
            <td>
                新职位:
            </td>
            <td>
                <asp:DropDownList ID="ddlNewDutyName" CssClass="InputCss" Width="100px" runat="server"
                    TabIndex="9" onkeydown="if(event.keyCode==13)event.keyCode=9" >
                </asp:DropDownList>
            </td>
            </tr>
            <tr>
            <td>
                备注:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="420px" TabIndex="10"
                    Rows="3" TextMode="MultiLine" onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
    </table>
    &nbsp;<br />
    <p style="text-align: center;">
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmpCode"
            ErrorMessage="工号不能为空"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassedTime"
            ErrorMessage="转正时间不能为空"></asp:RequiredFieldValidator>
        <br />
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" 
            TabIndex="11" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click" />
        &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"  OnClientClick="return confirm('确定要删除吗?\n');" />
         &nbsp;<asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="关闭"
            TabIndex="17" CausesValidation="False" />
    </p>
    </form>
</body>
</html>
